package java_class_work.week08.demo1;

/**
 * @Author Tiam
 * @Date 2022/10/31 11:18
 * @Description:
 */
public class SaveMoney implements Runnable{
    private int money = 3000;
    @Override
    public void run() {
        //存1000块钱
        money+=1000;
        System.out.println(Thread.currentThread().getName() + "存了1000, 目前余额为:"+money);
    }
}
